package com.crealth.model;

import java.io.Serializable;

import com.alibaba.fastjson.JSONObject;

public class TeamModel implements Serializable {
	private static final long serialVersionUID = 486408L;
	
	private int id;
	private int companyID;
	private String teamName;
	private int teamLeader;
	private int monthPlan;
	private int weekPlan;
	
	public TeamModel() {
		teamLeader = 0;
		companyID = 0;
		monthPlan = 0;
		weekPlan = 0;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCompanyID() {
		return companyID;
	}
	public void setCompanyID(int companyID) {
		this.companyID = companyID;
	}
	public String getTeamName() {
		return teamName;
	}
	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}
	public int getTeamLeader() {
		return teamLeader;
	}
	public void setTeamLeader(int teamLeader) {
		this.teamLeader = teamLeader;
	}	
	public int getMonthPlan() {
		return monthPlan;
	}

	public void setMonthPlan(int monthPlan) {
		this.monthPlan = monthPlan;
	}
	public int getWeekPlan() {
		return weekPlan;
	}
	public void setWeekPlan(int weekPlan) {
		this.weekPlan = weekPlan;
	}

	public JSONObject toJSONObject() {
		JSONObject jsonObj = new JSONObject();
		jsonObj.put("id", this.id);
		jsonObj.put("companyID", companyID);
		jsonObj.put("teamName", teamName);
		jsonObj.put("teamLeader", teamLeader);
		jsonObj.put("monthPlan", monthPlan);
		jsonObj.put("weekPlan", weekPlan);
		
		return jsonObj;
	}
	

}
